{subtemplate header}
<div id="subnav">
	<div class="wrap s_clear">
		<!--{if $item != 'buddylist'}-->
		<!--{if empty($item) || in_array($item, array('threads', 'posts', 'polls', 'tradestats', 'selltrades', 'buytrades', 'tradethreads', 'reward', 'activities', 'debate', 'video'))}-->
		<ul>
			<li><a href="my.php?item=threads$extrafid" class="radius10 {if empty($item) || $item == 'threads'}current{/if}">{lang thread}</a></li>
			<li><a href="my.php?item=posts$extrafid" class="radius10 {if $item == 'posts'}current{/if}">{lang reply}</a></li>
			<li id="polls" onmouseover="showMenu(this.id)"><a href="my.php?item=polls&amp;type=poll$extrafid" class="radius10 {if $item == 'polls'}current{/if} dropmenu">{lang thread_poll}</a></li>
			<li id="rewards" onmouseover="showMenu(this.id)"><a href="my.php?item=reward&amp;type=stats$extrafid" class="radius10 {if $item == 'reward'}current{/if} dropmenu">{lang thread_reward}</a></li>
			<li id="activities" onmouseover="showMenu(this.id)"<!--{if $item == 'activities'}--> class="current"<!--{/if}-->><a href="my.php?item=activities&type=orig$extrafid" hidefocus="true" class="dropmenu"><span>{lang thread_activity}</span></a></li>
			<li id="debates" onmouseover="showMenu(this.id)"<!--{if $item == 'debate'}--> class="current"<!--{/if}-->><a href="my.php?item=debate&type=orig$extrafid" hidefocus="true" class="dropmenu"><span>{lang thread_debate}</span></a></li>
			<!--{if $videoopen}--><li<!--{if $item == 'video'}--> class="current"<!--{/if}-->><a href="my.php?item=video&type=orig$extrafid" hidefocus="true"><span>{lang thread_video}</span></a></li><!--{/if}-->
			<!--{if $tradeopen}--><li id="trades" onmouseover="showMenu(this.id)"<!--{if in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))}--> class="current"<!--{/if}-->><a href="my.php?item=tradestats$extrafid" hidefocus="true" class="dropmenu"><span>{lang thread_trade}</span></a></li><!--{/if}-->
		</ul>
		<!--{elseif $item == 'favorites'}-->
		<ul>
			<li<!--{if $type == 'thread'}--> class="current"<!--{/if}-->><a href="my.php?item=favorites&type=thread$extrafid"><span>{lang my_favorite_threads}</span></a></li>
			<li<!--{if $type == 'forum'}--> class="current"<!--{/if}-->><a href="my.php?item=favorites&type=forum$extrafid"><span>{lang my_favorite_forums}</span></a></li>
		</ul>
		<!--{/if}-->

		<!--{if $forumname}--><div class="c_header"><strong>{lang my_forum}: $forumname</strong> <a href="my.php?item=$item{if $type}&type=$type{/if}" class="lightlink">({lang my_forum_all})</a></div><!--{/if}-->
		<!--{/if}-->
	</div>
</div>
<div id="wrap" class="wrap with_side s_clear">
	<div class="main">
		<div class="content">
			<h1>11</h1>
			<div class="<!--{if !in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))}-->list<!--{/if}-->">
		<!--{if empty($item) || $item == 'threads'}-->
			{template my_threads}
		<!--{elseif $item == 'posts'}-->
			{template my_posts}
		<!--{elseif $item == 'polls'}-->
			{template my_polls}
		<!--{elseif in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))}-->
			<!--{if $item == 'tradestats'}-->
				{template my_tradestats}
			<!--{elseif $item == 'selltrades' || $item == 'buytrades'}-->
				{template my_trades}
			<!--{elseif $item == 'tradethreads'}-->
				{template my_tradethreads}
			<!--{/if}-->
		<!--{elseif $item == 'reward'}-->
			{template my_rewards}
		<!--{elseif $item == 'activities'}-->
			{template my_activities}
		<!--{elseif $item == 'debate'}-->
			{template my_debate}
		<!--{elseif $item == 'video'}-->
			{template my_video}
		<!--{elseif $item == 'favorites'}-->
			{template my_favorites}
		<!--{elseif $item == 'subscriptions'}-->
			{template my_subscriptions}
		<!--{elseif $item == 'buddylist'}-->
			{template my_buddylist}
		<!--{/if}-->
			</div>
			<ul class="popupmenu_popup titlemenu_popup" id="polls_menu" style="display: none">
				<li <!--{if $type == 'poll'}--> class="current"<!--{/if}-->><a href="my.php?item=polls&type=poll$extrafid">{lang my_mypost}</a></li>
				<li <!--{if $type == 'join'}--> class="current"<!--{/if}-->><a href="my.php?item=polls&type=join$extrafid">{lang my_join}</a></li>
			</ul>
			<ul class="popupmenu_popup titlemenu_popup" id="rewards_menu" style="display: none">
				<li <!--{if $type == 'question'}--> class="current"<!--{/if}-->><a href="my.php?item=reward&type=question$extrafid">{lang my_mypost}</a></li>
				<li <!--{if $type == 'answer'}--> class="current"<!--{/if}-->><a href="my.php?item=reward&type=answer$extrafid">{lang my_join}</a></li>
				<li <!--{if $type == 'stats'}--> class="current"<!--{/if}-->><a href="my.php?item=reward&type=stats$extrafid">{lang statistics}</a></li>
			</ul>
			<ul class="popupmenu_popup titlemenu_popup" id="activities_menu" style="display: none">
				<li <!--{if $type == 'orig'}--> class="current"<!--{/if}-->><a href="my.php?item=activities&type=orig$extrafid">{lang my_mypost}</a></li>
				<li <!--{if $type == 'apply'}--> class="current"<!--{/if}-->><a href="my.php?item=activities&type=apply$extrafid">{lang my_join}</a></li>
			</ul>
			<ul class="popupmenu_popup titlemenu_popup" id="debates_menu" style="display: none">
				<li <!--{if $item == 'debate' && $type == 'orig'}--> class="current"<!--{/if}-->><a href="my.php?item=debate&type=orig$extrafid">{lang my_mypost}</a></li>
				<li <!--{if $item == 'debate' && $type == 'reply'}--> class="current"<!--{/if}-->><a href="my.php?item=debate&type=reply$extrafid">{lang my_join}</a></li>
			</ul>
			<ul class="popupmenu_popup titlemenu_popup" id="trades_menu" style="display: none">
				<li <!--{if $item == 'buytrades'}--> class="current"<!--{/if}-->><a href="my.php?item=buytrades$extrafid">{lang buy}</a></li>
				<li <!--{if $item == 'tradethreads'}--> class="current"<!--{/if}-->><a href="my.php?item=tradethreads$extrafid">{lang sell}</a></li>
				<li <!--{if $item == 'selltrades'}--> class="current"<!--{/if}-->><a href="my.php?item=selltrades&filter=all">{lang my_trade_seller_log}</a></li>
				<li><a href="eccredit.php?uid=$discuz_uid" target="_blank">{lang trade_rate}</a></li>
				<li <!--{if $item == 'tradestats'}--> class="current"<!--{/if}-->><a href="my.php?item=tradestats$extrafid">{lang my_trade_stat}</a></li>
			</ul>
		</div>
	</div>
	<div id="sidemenu" class="side">
		{subtemplate personal_navbar}
	</div>
</div>
{subtemplate footer}